import vue from '@vitejs/plugin-vue';
import path from 'path';
import { defineConfig } from 'vite';

const { resolve } = path;
export default defineConfig({
    plugins: [vue()],
    resolve: {
        alias: {
            '@utils': resolve(__dirname, './src/utils'),
            '@config': resolve(__dirname, './src/config/'),
            '@hooks': resolve(__dirname, './src/hooks/'),
            '@views': resolve(__dirname, './src/views/'),
            '@components': resolve(__dirname, './src/components/'),
            '@store': resolve(__dirname, './src/store'),
        },
    },
    css: {
        preprocessorOptions: {
            scss: {
                additionalData: '@import "./src/styles/mixin.scss";',
            },
        },
    },
});
